package a;

import hy.beans.Dog;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Date;
import java.util.List;
import java.util.Map;

@ConfigurationProperties(prefix = "person")
@Data
public class Person {
    @Value("${person.name}")
    String name;
    Integer age;
    boolean married;
    Date birth;
    Map<String,Object> maps;
    List<Object>lists;

    @Autowired
    Dog dog;
}
